package model.tokens;

import java.util.Deque;
import java.util.Queue;
import java.util.Stack;

import model.semantics.Node;
import model.semantics.VariableNode;

/**
 * A variable token is just an alphanumeric variable that holds a value.
 */

public class VariableToken<T> extends LiteralToken<T> {

    public VariableToken(TokenConstructorArguments<T> args) {
        super(args);
    }

    @Override
    public Node<T> makeNewInstance(Deque<Node<T>> nodes) {
        String label = getLabel();

        return new VariableNode<T>(label);
    }
}
